package com.adnaan.backend.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("supplier_application")
@Schema(description = "供货商申请信息")
public class SupplierApplication {

    @TableId(type = IdType.AUTO)
    @Schema(description = "主键ID")
    private Long id;

    @Schema(description = "关联的系统用户ID")
    private Long userId;

    @Schema(description = "公司名称")
    private String companyName;

    @Schema(description = "营业执照")
    private String businessLicense;

    @Schema(description = "法人姓名")
    private String legalPerson;

    @Schema(description = "法人身份证")
    private String idCard;

    @Schema(description = "联系电话")
    private String contactPhone;

    @Schema(description = "公司地址")
    private String companyAddress;

    @Schema(description = "状态：0-待审核 1-已通过 2-已拒绝")
    private Integer status;

    @Schema(description = "拒绝原因")
    private String rejectReason;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    @Schema(description = "密码")
    @TableField(exist = false)
    private String password;

    @Schema(description = "邮箱")
    @TableField(exist = false)
    private String email;
} 